#include <iostream>
#include "linkStack.h"

int main(){
    linkStack q;
    for(long i=0;i<20;i++){
        q.push((void*)(i+1));
    }

    while(q.isEmpty()==false){
        std::cout<<(long)*q.getTop()<<" ";
        q.pop();
    }
    std::cout<<std::endl;
    return 0;
}